/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import request from '@/utils/request';

// 获取订单列表
export async function getOrderList(params: any) {
  return request('/order/getList', {
    method: 'POST',
    data: params,
  });
}

//获取订单详情
export async function getOrderDetail(orderNo: any) {
  return request(`/order/info`, {
    method: 'GET',
    params: {
      orderNo,
    },
  });
}
//拒绝订单
export async function reallyReject(params: any) {
  return request('/order/reallyReject', {
    method: 'POST',
    data: params,
  });
}
//取消订单
export async function cancelOrder(params: any) {
  return request('/order/cancel', {
    method: 'POST',
    data: params,
  });
}
//订单退款
export async function refundMoneyAndStatus(params: any) {
  return request('/order/refundMoneyAndStatus', {
    method: 'POST',
    data: params,
  });
}
//拒绝退款退款
export async function refuseRefunds(params: any) {
  return request('/order/refund', {
    method: 'POST',
    data: params,
  });
}
//查询网点
export async function searchShop(params: any) {
  return request('/order/searchShop', {
    method: 'POST',
    data: params,
  });
}
//分配网点
export async function resetShop(params: any) {
  return request('/order/resetShop', {
    method: 'POST',
    data: params,
  });
}
